import request from '@/utils/request'

export function getList(params,loading) {
    return request({
        url: "/mes/mesUndoTaskController/list",
        method: "get",
        params,
        loading
    });
}
export function getObject(id){
    return request({
        url: "/mes/mesUndoTaskController/" + id,
        method:'get'
    });
}

export function resendApi(data,loading) {
    return request({
        url: "/mes/mesUndoTaskController/resend",
        method: "post",
        data: data,
        loading
    });
}

export function resendAndFinishApi(data,loading) {
    return request({
        url: "/mes/mesUndoTaskController/resendAndFinish",
        method: "post",
        data: data,
        loading
    });
}


export function resetAllApi(loading){
    return request({
        url:'/mes/mesUndoTaskController/resetAllUndo',
        method:'post',
        loading
    });
}

